﻿@using PagedList.Mvc;
@model PagedList.IPagedList<OT.Areas.Admin.Models.TestAttemptDetail>
@{
    ViewBag.Title = "ShowTestAttemptList";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<div class="widget">
    
    <div class="widget-content">
        <table class="table table-striped table-bordered table-hover">
            <thead>
                <tr>
                    <th  class="widget-head">Student Name</th>
                    <th  class="widget-head">Is Finish</th>
                    <th  class="widget-head">Marks</th>
                    <th  class="widget-head">Date of Test</th>
                </tr>
            </thead>
            <tbody style="margin-top: 50px">
                @foreach (var item in Model)
                {
                    <tr>
                        
                        <td>
                             @Html.DisplayFor(modelItem => item.StudentName)
                        </td>
                        
                        <td>
                            @if (item.IsFinish == true)
                            {
                                <i class="fa fa-check"></i>
                            }
                            else
                            {
                                <i class="fa fa-times"></i>
                            }
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.Score)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.DateofExam)
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $('#h2Title').html("<i class='fa fa-bell'></i> Test Attempt List");
        $('#aTitle').html("Test Attempt List");
        $('#liTest').addClass("open");
    });
</script>